package com.springjooq.sdun.config.datasource;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 多数据源与单数据源可能会有冲突，暂时先去掉多数据源
 *
 * @Description 配置数据源
 * @auther Szper
 * @create 2019-08-29 13:44
 */

@Configuration
@ConditionalOnProperty(prefix = "sdun.muti-datasource", name="open", havingValue = "false", matchIfMissing = true)//控制Configuration是否生效
@EnableTransactionManagement(proxyTargetClass = true)
@MapperScan(basePackages = {"com.springjooq.sdun.*.mapper"})
public class SingleDataSourceConfig {

}
